package com.party.core.dao.read.sign;

import com.party.common.paging.Page;
import com.party.core.dao.read.BaseReadDao;
import com.party.core.model.sign.MemberSign;
import com.party.core.model.sign.MemberSignDetail;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * @Author: huangzequn
 * @Date: 2019/4/16 11:13
 * 合作商机构app 签到详情读取
 */
@Repository
public interface MemberSignDetailReadDao extends BaseReadDao<MemberSignDetail> {

    /**
     * @Author hzq
     * @Description //根据signId，yearMonth查询
     * @Date 17:03 2019/4/16
     * @param signId
     * @param yearMonth 年月 '2019-04'
     * @return
     **/
    List<MemberSignDetail> getByYearMonth(@Param("signId") String signId, @Param("yearMonth") String yearMonth, Page page);

    /**
    * @Author hzq
    * @Description //TODO
    * @Date 15:15 2019/4/17
    * @param signId
    * @param day
    * @return
    **/
    MemberSignDetail getByDay(@Param(value = "signId") String signId, @Param(value = "day") Date day);
}
